﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections.ObjectModel;

namespace SGT.Model
{
    public class Grafica : INotifyPropertyChanged
    {
        private string _Titulo;
        private ObservableCollection<Sector> _ListaSectores;
        public Grafica()
        {

        }

        public string Titulo
        {
            get { return _Titulo; }
            set
            {
                _Titulo = value;
                RaisePropertyChanged("Titulo");
            }
        }

        public ObservableCollection<Sector> ListaSectores
        {
            get { return _ListaSectores; }
            set
            {
                _ListaSectores = value;
                RaisePropertyChanged("ListaListaSectoresUso");
            }
        }


      

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void RaisePropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(
                    this,
                    new PropertyChangedEventArgs(propertyName)
                    );
            }
        }

        #endregion
    }
}
